// https://taro-ext.jd.com/plugin/view/5d394d3a9b6a1d4027780173
import React, { useEffect, useState } from "react";
import Taro, { useRouter } from "@tarojs/taro";
import { View, Image, Text } from "@tarojs/components";

import "./index.scss";

interface INotice {
  title: string;
  create_time: string;
  content: string;
}

const Index: React.FC<{}> = () => {
  const data: INotice = JSON.parse(useRouter().params.data);
  console.log("data---->>", data);
  return (
    <View className="notice-detail-page">
      <View className="title">{data.title}</View>
      <View className="time">发布时间：{data.create_time}</View>
      <View className="content">
        <Text>{data.content}</Text>
      </View>
    </View>
  );
};

export default Index;
